<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D变换</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            border: 5px solid green;
            margin: 0 auto;
        }
        .box img{
            width: 400px;
            height: 400px;
            /* 旋转 */
            transform: rotate(60deg);
            /* 负值为逆时针旋转 */
            transform: rotate(-60deg);
            /* 放大2倍 */
            transform: scale(2);
            /* 缩放 */
            transform: scale(0.5);

            /* 平移  向右，向下为正，向左向上为负*/
            transform: translate(100px,50px) ;
            transform: translate(-100px,50px) ;
            /* 与相对定位相比，都能移动到某个位置 */

            /* 斜切 */
            transform: skew(10deg,5deg);

            /* transform可以书写多个变形，用空格隔开 */
            /* transform:rotate(60deg) scale(0.9) translate(-100px,50px); */

        } 
    </style>
</head>
<body>
    <div class="box"><img src="./image/one.jfif" alt=""></div>
</body>
</html>